package com.travel.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.travel.dto.QrCodeDto;
import com.travel.dto.TravelRegistrationDTO;
import com.travel.pojo.TravelRegistration;
import com.travel.result.PageResult;
import com.travel.vo.OrderVO;

public interface TicketRegistrationService extends IService<TravelRegistration> {
    Integer register(TravelRegistrationDTO dto);

    boolean pay(Integer ticketId);

    PageResult getOrderInfoList(Integer pageNum, Integer pageSize, String status);

    OrderVO getOrderInfoById(Integer ticketId);

    String createQrCode(QrCodeDto qrCodeData);

    void updateStatusByQrCode(QrCodeDto qrCodeData);

    PageResult getOrderInfoListForAdmin(Integer pageNum, Integer pageSize, String status);
}
